﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Ivory.Libs;

namespace Ivory.Interface
{
    public abstract class GUIElement : GUIComponent
    {
        private Binding _Binding = null;
        public Binding Binding
        {
            get { return _Binding; }
            set
            {
                _Binding = value;
                UseBinding = value != null;
            }
        }


        private bool _UseBinding = false;
        protected bool UseBinding 
        {
            get { return _UseBinding; }
            set
            {
                _UseBinding = value;
            }
        }

        //cTor
        public GUIElement(Rectangle ClickRectangle)
            : base(ClickRectangle)
        {

        }      
    }
}
